﻿<!--revision $Id$-->
<Window x:Class="AxisTest.Window1"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:parts="clr-namespace:OpenWPFChart.Parts;assembly=OpenWPFChart.Parts"
	Title="Linear Axis Element Test" SizeToContent="WidthAndHeight">

	<Window.InputBindings>
		<KeyBinding Key="Add" Modifiers="Control" CommandParameter="1.2" Command="NavigationCommands.Zoom" />
		<KeyBinding Key="Subtract" Modifiers="Control" CommandParameter="-1.2" Command="NavigationCommands.Zoom" />
	</Window.InputBindings>
	<Window.CommandBindings>
		<CommandBinding Command="NavigationCommands.Zoom" Executed="ZoomExecutedCommandHandler"/>
	</Window.CommandBindings>
	
	<DockPanel>
		<!-- Menu -->
		<Menu DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Header="_Exit" Click="Exit_Click"/>
			</MenuItem>
			<MenuItem Header="_View">
				<MenuItem Header="_Horizontal Axis Properties" Name="hAxisProperties" Click="AxisProperties_Click"/>
				<MenuItem Header="_Vertical Axis Properties" Name="vAxisProperties" Click="AxisProperties_Click"/>
				<Separator/>
				<MenuItem Header="Zoom_In (Ctrl+NumPad+)" Command="Zoom" CommandParameter="1.2"/>
				<MenuItem Header="Zoom_Out (Ctrl+NumPad-)" Command="Zoom" CommandParameter="-1.2"/>
			</MenuItem>
		</Menu>

		<Grid Name="panel">
			<parts:LinearAxis Name="hAxis" ContentLayout="AtLeftOrBelow,TicksCentered">
				<parts:LinearAxis.AxisScale>
					<parts:ChartLinearScale Start="135" Stop="-200" TickStep="10" LongTickAnchor="25.0" />
				</parts:LinearAxis.AxisScale>
			</parts:LinearAxis>
			<parts:LinearAxis Name="vAxis">
				<parts:LinearAxis.AxisScale>
					<parts:ChartLinearScale Start="-35.0" Stop="-200.0" TickStep="10" LongTickAnchor="25"  />
				</parts:LinearAxis.AxisScale>
				<parts:LinearAxis.LayoutTransform>
					<TransformGroup>
						<RotateTransform Angle="90"/>
						<TranslateTransform Y="20"/>
					</TransformGroup>
				</parts:LinearAxis.LayoutTransform>
			</parts:LinearAxis>
		</Grid>
	</DockPanel>
</Window>
